package com.gm.hardwarelib;

import android.util.Log;

/**
 * Created by Mouse on 2017/7/11.
 */

public class MatrixControler {

    /*Joystick*/
    public static native int[] readJoystickPoint();

    public static native void pwmPlay(int gpioPin, int frequency, int duty);

    public static native void pwmStop(int gpioPin);


    static {
        try {
            System.loadLibrary("matrix-hardware");
        } catch (UnsatisfiedLinkError e) {
            Log.w("MatrixControler", "libmatrix-hardware library not found!");
        }
    }

}
